package com.itcpeng.dao;

import com.itcpeng.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingDao {
    //根据日期查询是否存在
    OrderSetting findByOrderDate(Date orderDate);

    //更新数据
    void updateNumber(OrderSetting idb);

    //添加
    void add(OrderSetting orderSetting);

    //通过实践范围查询
    List<OrderSetting> findOrderSettingDate(@Param("startDate") String startDate, @Param("endDate") String endDate);

    //更新可预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);

    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

    void deleteOrderSettingByDate(Date date);
}
